<%@ page import="java.util.Date" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="welcome.jsp"%>
<!DOCTYPE html>
<html>
<head>
    <title>JSP - Hello World</title>
</head>
<body>
<%--jsp脚本--%>
<%
    Date now=new Date();
    out.println(now);
%>
<br/>
<%--jsp表达式(向页面进行输出）等同于out.print的作用--%>
<%= new Date().toLocaleString()%>
<br/>
<%--jsp声明--%>
<%!int num=1;%>
<%=num%>
<%--&lt;%&ndash;jsp:include动作元素，引入另一个页面&ndash;%&gt;--%>
<%--<jsp:include page="hello.jsp">--%>
<%--    <jsp:param name="username" value="qst"/>--%>
<%--</jsp:include>--%>
<%--jsp:forward 进行页面跳转--%>
<jsp:forward page="hello.jsp">
    <jsp:param name="username" value="forward"/>
</jsp:forward>
</body>
</html>